package com.tuananh.radnom.gwt.shared.dto;

import com.sencha.gxt.data.shared.TreeStore;

public class NetPollerDTO extends MyBaseDTO {
	MyBaseDTO params;
	MyBaseDTO timeout;

	public MyBaseDTO getParams() {
		return params;
	}

	public void setParams(MyBaseDTO params) {
		this.params = params;
	}

	public MyBaseDTO getTimeout() {
		return timeout;
	}

	public void setTimeout(MyBaseDTO timeout) {
		this.timeout = timeout;
	}

	@Override
	public MyBaseDTO addToTreeStore(MyBaseDTO root,String prefix, TreeStore<MyBaseDTO> store) {
		// TODO Auto-generated method stub
		if (root != null) {
			parentDTO=super.addToTreeStore(root,prefix, store);
			validateAndAdd(this,"Params", params, store);
			validateAndAdd(this,"TimeOut", timeout, store);
		}
		return parentDTO;
	}
}
